
/*
 * Brief:   Canvas Interface.
 *          It provides methods(such as draw lines) to manipulate a bitmap.
 *
 * File:    tp_canvas.h
 * Author:  huangsanyi <huangsanyi@gmail.com>
 *
 */

/*
 * History:
 * 1,2013-1-15,huangsanyi,created.
 */

#ifndef TP_CANVAS_H
#define TP_CANVAS_H

#include "tp_bitmap.h"

TP_DECL_BEGIN

/** Draw a line on the given canvas.
 *
 * @param bitmap the bitmap canvas.
 * @param x1 The starting x axis position.
 * @param y1 The starting y axis position.
 * @param x2 The ending x axis position.
 * @param y2 The ending y axis position.
 */
void tp_canvas_draw_line(TpBitmap *bitmap, int x1, int y1, int x2, int y2);


TP_DECL_END

#endif /* !TP_CANVAS_H */
